/**
 * Team members:
 * HengXing Liu 2022229044
 * YiYang Zhang 2022229047
 * ZeJun Liu 2022229092
 */
package project;

/**
 * A class to handle lexical exception.
 * A lexical exception is thrown when a token
 * is malformed (bad number or string) or in case
 * there is a not allowed character in the user
 * input (like '!' or '?')
 */
@SuppressWarnings("serial")
public class LexicalErrorException extends Exception {
	private String message;
	public LexicalErrorException(String msg) {
		message = msg;
	}

	@Override
	public String getMessage() {
		return "Lexical error: " + message;
	}
}
